/*********************************************************
          File Name:10.15.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Sun 27 Sep 2015 11:37:58 AM CST
**********************************************************/

#include <iostream>

int main()
{

        int k = 2;
        auto f = [k] (int j) { return k * j; };
        for(int i = 0 ; i < 10; i++)
        {
                std::cout << f(i) << std::endl;
        }
}
